import { useParams } from "react-router-dom"
const Book = () => {
    const {num ,tip} = useParams()
    return (
        <div> 我是Book 组件 
            <div>useParams传递的参数:</div>
            num:{num}
            tip:{tip}
        </div>
    )
}
export default Book